package cn.tedu.spring.eg2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Controller
public class CommentMapper {
//    @Autowired
//    @Qualifier(value = "aaa")
    @Resource(name = "mapperImpl1")
    private  Mapper mapper;

    @Override
    public String toString() {
        return "CommentMapper{" +
                "mapper=" + mapper+
                '}';
    }
}
